#ifndef __CHELPER_EXAMPLES_MACRO_H__
#define __CHELPER_EXAMPLES_MACRO_H__

#include <iostream>
#include <string.h>

#define PRINTF(X) printf("The value of "#X" is: %d \n", X)
// #define LOGINFO(...) printf("[INFO] " __VA_ARGS__)

#define __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
#define LOGINFO(__fmt__, ...) printf("[INFO][%s][%s:%d]" __fmt__ "\n", __FILENAME__, __FUNCTION__, __LINE__, ##__VA_ARGS__)


#endif // __CHELPER_EXAMPLES_MACRO_H__